RSSSL\Security\WordPress\Two_Fa\Rsssl_Two_Factor_Totp B

Total Complexity 79
Dependencies 9
Dependents 6
Total lines 986
Lines of code 548
Logical lines of code 223
Comment lines 296
Methods 34
Properties 1

Methods 34

Method Rating Maintainability Complexity Lines of code
user_two_factor_options()
A
35 3 138
is_enabled()
S
55 7 20
rest_setup_totp()
S
51 6 25
get_selection_option()
S
50 5 26
base32_decode()
S
54 4 20
validate_code_for_user()
S
57 4 17
setup_totp()
S
57 4 16
base32_encode()
S
58 4 15
is_optional()
S
59 4 14
pack64()
S
58 4 14
validate_authentication()
S
62 4 11
register_rest_routes()
S
46 1 49
get_authcode_valid_ticktime()
S
58 3 14
calc_totp()
S
56 2 16
abssort()
S
66 3 8
display_onboarding_step_totp()
S
50 1 29
authentication_page()
S
57 1 22
is_forced()
S
70 2 6
get_instance()
S
69 2 7
generate_qr_code_url()
S
58 1 15
rest_delete_totp()
S
62 1 12
set_user_status()
S
79 1 3
is_configured()
S
74 1 4
enqueue_qrcode_script()
S
65 1 10
generate_key()
S
71 1 5
is_available_for_user()
S
75 1 4
__construct()
S
72 1 5
is_valid_authcode()
S
78 1 3
is_valid_key()
S
74 1 4
delete_user_totp_key()
S
76 1 4
set_user_totp_key()
S
78 1 3
get_user_totp_key()
S
78 1 3
get_label()
S
79 1 3
get_status()
S
79 1 3